package day20171019.test01;

 class Circle extends Shape {
    public double r;
    final double PI = 3.14159;

    public double getArea(){
        return r*r*PI;
    }

    public double getPerimeter(){
        return 2*PI*r;
    }

    Circle(int x,int y,int width,int height){
        super(x,y,width,height);
        r = (double)width/2.0;
    }
}
